package 桥接模式;

import java.util.Random;

/**
 * 校验类
 */
public abstract class RefinedCoffee extends Coffee{

    public RefinedCoffee(ICoffeeAdditives additives) {
        super(additives);
    }

    public void checkQuality() {
        Random random = new Random();
        System.out.println(String.format("%s 添加%s",additives.getClass().getSimpleName(),random.nextBoolean()?"太多":"太少"));
    }
}
